import * as types from './mutation-types'

export default {
  loginAuth({ commit }, req) {
    commit(types.LOGIN_AUTH, req);
  },
  userToken({ commit }, req) {
    commit(types.USER_TOKEN, req);
  },
  installAuth({ commit }) {
    commit(types.INSTALL_AUTH);
  },
  install({ commit }, req) {
    commit(types.INSTALL, req);
  },
  initUser({ commit }) {
    commit(types.INIT_USER_FROM_STORE);
  },
  logoutUser({ commit }) {
    commit(types.LOGOUT_USER);
  },
  loadMessages({ commit }, req) {
    commit(types.LOAD_MESSAGES, req);
  },
  refreshUser({ commit }, user) {
    commit(types.REFRESH_USER, user);
  },
  rememberPassword({ commit }, req) {
    commit(types.REMEMBER_PASSWORD, req);
  },
};
